package javaCode.chapter09.abstract_;

public class Y extends Template{

    //计算任务
    //1+...+10000
    public void job(){ //实现了 父类Template job方法
        long num = 0;
        for (long i = 1; i <= 10000; i++) {
            num += i;
        }
    }
}
